package cyou.breathe.blog.sms;

import cyou.breathe.blog.lock.DistributeLock;
import cyou.breathe.blog.sms.response.SmsSendResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author: breathe
 * @createTime: 2025-08-26
 */
@Slf4j
@Service
public class MockSmsServiceImpl implements SmsService {
    @DistributeLock(scene = "SEND_SMS", keyExpression = "#phoneNumber")
    @Override
    public SmsSendResponse sendMsg(String phoneNumber, String code) {
        SmsSendResponse smsSendResponse = new SmsSendResponse();
        smsSendResponse.setSuccess(true);
        return smsSendResponse;
    }
}

